package com.cos.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class NumberUtil {
	
	public static  String  randomNumber(){
		String  str ;
		int max = 999;
		int min = 100;
		Random random = new Random();
		
		int number = random.nextInt(max)%(max-min+1) + min;
		
		str = "9" + number + new SimpleDateFormat("HHmmss").format(new Date());
		
		return str ;
	}
	
	public static void main(String[] args) {
		System.out.println(new SimpleDateFormat("HHmmss").format(new Date()));
		System.out.println(randomNumber());
	}
}
